package com.mcmaster.android.data;

import java.util.ArrayList;
import java.util.List;

public class Tour {
	// Members
	private List<String> building_qr_;
	public String description;
	public String name; //! Tour name
	
	
	// Methods
	public Tour() {
		building_qr_ = new ArrayList<String>();
	}
	
	public Tour(String n, String descrip, List<String> l) {
		name = n;
		description = descrip;
		building_qr_ = l;
	}
	
	public List<String> dumpCodes() {
		return building_qr_;
	}

	public void clear() {
		building_qr_.clear();
	}
	public String get(int i) {
		return building_qr_.get(i);
	}
	public String getDescription() {
		return description;
	}
	public void pushBuilding(String qr) {
		building_qr_.add(qr);
	}
	public void popBuilding() {
		if (building_qr_.size()==0) { return; }
		building_qr_.remove(building_qr_.size()-1);
	}
	public void setBuildingQR(List<String> l) {
		building_qr_ = l;
	}
	public int size() {
		return building_qr_.size();
	}
}
